package com.ruoyi.erp.domain.bo;

import com.ruoyi.common.annotation.query.*;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 编码规则明细业务对象 sys_code_rule_detail
 *
 * @author chenyun
 * @date 2022-03-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("编码规则明细业务对象")
public class SysCodeRuleDetailBo extends BaseEntity {

    /**
     * 编号
     */
    @EQ
    @ApiModelProperty(value = "编号", required = true)
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 编码规则主表id
     */
    @EQ
    @ApiModelProperty(value = "编码规则主表id", required = true)
    @NotNull(message = "编码规则主表id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long codeRuleId;

    /**
     * 排序
     */
    @EQ
    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer orderNum;

    /**
     * 类型
     */
    @EQ
    @ApiModelProperty(value = "类型", required = true)
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 值
     */
    @EQ
    @ApiModelProperty(value = "值", required = true)
    @NotBlank(message = "值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String value;

    /**
     * 长度
     */
    @EQ
    @ApiModelProperty(value = "长度", required = true)
    @NotNull(message = "长度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer length;

    /**
     * 不满长度填充字符
     */
    @EQ
    @ApiModelProperty(value = "不满长度填充字符", required = true)
    @NotBlank(message = "不满长度填充字符不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fillChar;

    /**
     * 左填充(1：是；0：否)
     */
    @EQ
    @ApiModelProperty(value = "左填充(1：是；0：否)", required = true)
    @NotBlank(message = "左填充(1：是；0：否)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String leftFill;

    /**
     * 机构
     */
    @EQ
    @ApiModelProperty(value = "机构", required = true)
    @NotNull(message = "机构不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orgId;

    /**
     * 状态
     */
    @EQ
    @ApiModelProperty(value = "状态", required = true)
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @EQ
    @ApiModelProperty(value = "备注")
    private String remark;


}
